#ifndef RESULTMODEL_H
#define RESULTMODEL_H

#include <QAbstractTableModel>

#include "video.h"

class ResultModel : public QAbstractTableModel
{
public:
    ResultModel(QStringList tags);

    int rowCount(const QModelIndex&) const { return m_videos.size(); }
    int columnCount(const QModelIndex&) const { return 3; }

    QVariant data(const QModelIndex&, int) const;

    Video getVideo(int row) { return m_videos[row]; }


private:
    QList<Video> m_videos;

};

#endif // RESULTMODEL_H
